[#include "/WEB-INF/pages/common/taglibs.ftl"]
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Site</title>
		<meta name="menu" content="CategoryMenu"/> 
		<meta name="heading" content="heading"/>
		<script type="text/javascript" src="[@c.url value='/js/plugins/jquery.alerts.js'/]"></script>
		<script type="text/javascript">
			$(function(){
				$('input[name|="site.domain"]').click(function() {
					jAlert('<p>如果您错误修改后,无法登陆系统.</p><p>请在登录地址上增加参数<b style="color:red;">domain=您输入的域名字符串</b>进行登录.</p>');
					$(this).unbind('click');
				})
			})
		</script>
	</head>
	<body id="body">
		<div class="contenttitle">
	    	<h2 id="vertical" class="form"><span>站点信息设置</span></h2>
	    </div><!--contenttitle-->
	    <br>
	    
		<form action="[@c.url value="/manage/Site_save.action"/]?backurl=${action.backUrl}" method="post" class="stdform stdform2">
			<p>
	        	<label>名称：</label>
	            <span class="field"><input class="smallinput" type="text" placeholder="请输入站点名称" name="site.name" value="${(site.name)!''}"/></span>
	        </p>
	        <p>
	        	<label>简称：</label>
	            <span class="field"><input type="text" placeholder="请输入站点简称" name="site.shortName" value="${(site.shortName)!''}"/></span>
	        </p>
	        <p>
	        	<label>站点类型：</label>
	            <span class="field">
	            	<select name="site.siteGroupId" disabled=disabled>
						[#list siteGroupList as group]
							<option [#if (group.name)?? && group.id == site.siteGroupId]selected="selected"[/#if]  value="${group.type}" >${group.name}</option>
						[/#list]
					</select></span>
	        </p>
	        <p>
	        	<label>站点域名：<small>站点在部署的固定域名</small></label>
	            <span class="field"><input type="text" placeholder="请输入站点域名" name="site.domain" value="${(site.domain)!''}"/>
	            	<br/><small style="color:blue;">如果您的站点没有域名，请使用网站所在的文件夹名称,如果您的站点存放在ROOT文件夹下,请使用"/"作为站点域名的内容.</small>
	            </span>
	        </p>
	        <p>
	        	<label>域名别名：</label>
	            <span class="field"><input type="text" placeholder="请输入域名别名" name="site.domainAlias" value="${(site.domainAlias)!''}"/></span>
	        </p>
	        <p>
	        	<label>根域名：</label>
	            <span class="field"><input type="text" placeholder="请输入根域名,如果没有根域名,则可输入域名" name="site.baseDomain" value="${(site.baseDomain)!''}"/></span>
	        </p>
	        <p>
	        	<label>资源域名：</label>
	            <span class="field"><input type="text" placeholder="请输入资源路径" name="site.resDomain" value="${(site.resDomain)!'resource_cms'}"/></span>
	        </p>
	        <p>
	        	<label>资源路径：<small>模板、图片、样式表、js脚本等文件</small></label>
	            <span class="field"><input type="text" placeholder="请输入资源路径" name="site.resPath" value="${(site.resPath)!'www_resource'}"/>
	            <br/><small style="color:blue;">如果存在多站点，请不要使用相同的资源路径，以免造成冲突</small>
	            </span>
	        </p>
	        <p>
	        	<label>系统类型：</label>
	            <span class="field">
	            	<select name="site.type">
						[#list typeList as type]
							<option [#if (site.type)?? && type[1] == site.type]selected="selected"[/#if]  value="${type[1]}" >${type[0]}</option>
						[/#list]
					</select></span>
	        </p>
	        <p>
	        	<label>URL后缀：<small>修改后，请手动清除站点缓存.</small></label>
	            <span class="field"><input type="text" placeholder="请输入域名别名" name="site.suffix" value="${(site.suffix)!''}"/></span>
	        </p>
	        <p>
	        	<label>cookie识别码：</label>
	            <span class="field"><input type="text" placeholder="站点保存COOKIE的KEY" name="site.cookieKey" value="${(site.cookieKey)!''}"/></span>
	        </p>
	        <p>
	        	<label>公司名称：</label>
	            <span class="field"><input type="text" placeholder="请输入域名别名" name="site.company" value="${(site.company)!''}"/></span>
	        </p>
	        <p>
	        	<label>站长邮箱：</label>
	            <span class="field"><input type="text" placeholder="请输入站长邮箱" name="site.ownerEmail" value="${(site.ownerEmail)!''}"/></span>
	        </p>
	        <p>
	        	<label>版权信息：</label>
	            <span class="field">
	            	<textarea class="longinput" rows="5" cols="80" style="height: 86px;" name="site.copyright" rows="40" >${(site.copyright)!''}</textarea>
	            </span>
	        </p>
	        <p>
	        	<label>备案号：</label>
	            <span class="field">
	            	<textarea class="longinput" rows="5" cols="80" style="height: 86px;" name="site.recordCode" rows="40" >${(site.recordCode)!''}</textarea>
	            </span>
	        </p>
		    <p class="stdformbutton">
		      	<button class="submit ">提&nbsp;&nbsp;交</button>
		        <input type="reset" value="重&nbsp;&nbsp;置" class="reset radius2" />
		        <a class="anchorbutton button_alert" href="${action.backurl}" style="margin-left:6px;background-color: rgb(247, 247, 247); border-color: rgb(204, 204, 204); color: rgb(51, 51, 51);"><span style="background-color: rgb(255, 255, 255); border-color: rgb(221, 221, 221);">返&nbsp;&nbsp;回</span></a>
		    </p>
		</form> 
		<script type="text/javascript">
		//<![CDATA[
			$(function(){
				var theme = getTheme();
				//默认源码模式
			})		
		//]]></script>
		<div style="clear:both;"></div>
	</body>
</html>